let data = { type: 3, role: "admin" };

let { type, role } = data;

let actions = {
  admin_1: ["color1", "index1"],
  admin_2: ["color2", "index2"],
  admin_3: ["color3", "index3"],
  admin_4: ["color4", "index4"],
  admin_5: ["color5", "index5"],
  admin_6: ["color6", "index6"],
  guest_1: ["guest_color1", "guest_index1"],
  guest_2: ["guest_color2", "guest_index2"],
  guest_3: ["guest_color3", "guest_index3"],
  guest_4: ["guest_color4", "guest_index4"],
  guest_5: ["guest_color5", "guest_index5"],
  guest_6: ["guest_color6", "guest_index6"],
};

let buttonEvent = (type, role) => {
  let [color, target] = actions[`${role}_${type}`];
  console.log(color);
  console.log(target);
};

buttonEvent(type, role);
